<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;

class RoomManualManagementController extends BaseController
{
    /**
     * @param Request $request
     */
    public function __construct(Request $request)
    {
        parent::__construct($request);
    }

    /**
     * 获取列表
     *
     * @return \Illuminate\Http\JsonResponse
     */
    public function getALl()
    {
        return $this->parseApiResult(callKKAudioApi('inner/room_manual_management/get_all'));
    }

    /**
     * 增加推荐房间
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function add(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/room_manual_management/add', $request->all()));
    }

    /**
     * 修改推荐房间
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function update(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/room_manual_management/update', $request->all()));
    }

    /**
     * 删除推荐房间
     *
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function delete(Request $request)
    {
        return $this->parseApiResult(callKKAudioApi('inner/room_manual_management/delete', $request->all()));
    }
}
